package com.woniuxy.cloud.carl.carlgoods.client;

import com.woniuxy.cloud.carl.carlgoods.client.dto.CarSkuDto;
import com.woniuxy.cloud.carl.carlgoods.client.param.AddCarSkuParam;
import com.woniuxy.result.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;


@FeignClient(contextId = "CarSkuClient",name="carlgoods")
public interface CarSkuClient {
@PostMapping("/addCarSku")
    public Result addCarSku(@RequestBody AddCarSkuParam param);
@GetMapping("/findSkuByCarId")
public Result<List<CarSkuDto>> findSkuByCarId(@RequestParam("carId") Long carId);
}
